package com.smart;

public class math {
    public static void main(String[] args) {
        int x = -121;
        System.out.println(x);
        String s = String.valueOf(x);
        System.out.println(s);
        Integer rem = 0;
        for (int i = 0; i<s.length()/2+1; i++){
            if (s.charAt(i) == s.charAt(s.length()-1-rem)){
                rem++;
                System.out.println("true");
            }else {
                System.out.println("false");
            }
        }
    }
}
